{extend name="panel/layout" /}
{block name="main"}
<div class="profile-header">
    <div class="profile-cover">
        <div class="cover-user m-b-lg">
            <div>
                <a href=""><span class="cover-icon"><i class="fa fa-external-link-square"></i></span></a>
            </div>
            <div>
                <div class="avatar avatar-xl avatar-circle">
                    <a>
                        <img class="img-responsive"
                             src="http://q1.qlogo.cn/g?b=qq&nk={$userInfo.qq}&s=160" alt="avatar">
                    </a>
                </div><!-- .avatar -->
            </div>
            <div>
                <a><span class="cover-icon"><i class="fa fa-paypal"></i></span></a>
            </div>
        </div>
        <div class="text-center">
            <h4 class="profile-info-name m-b-lg">{$userInfo.user}&nbsp</h4>
            <div>
                <a class="m-r-xl theme-color"><i class="fa fa-info m-r-xs"></i>{$userInfo.uid}</a>
                <a class="theme-color"><i class="fa fa-shield m-r-xs"></i><i class="text-primary fa fa-star"></i><i
                        class="text-primary fa fa-star"></i><i class="text-primary fa fa-star"></i></a>
            </div>
        </div>
    </div><!-- .profile-cover -->

    <div class="promo-footer">
        <div class="row no-gutter">
            <div class="col-xs-4 promo-tab">
                <div class="text-center">
                    <small>余额</small>
                    <h4 class="m-0 m-t-xs">{$userInfo.rmb}&nbsp;<a><i class="fa fa-paypal"></i></a>
                    </h4>
                </div>
            </div>
            <div class="col-xs-4 promo-tab">
                <div class="text-center">
                    <small>金币</small>
                    <h4 class="m-0 m-t-xs">{$userInfo.rmb}&nbsp;<a><i class="fa fa-plus"></i></a></h4>
                </div>
            </div>
            <div class="col-xs-4 promo-tab">
                <div class="text-center">
                    <small>可提现余额</small>
                    <h4 class="m-0 m-t-xs">{$userInfo.rmb}&nbsp;<a><i class="fa fa-rmb"></i></a></h4>
                </div>
            </div>
        </div>
    </div><!-- .promo-footer -->
</div>
<div class="row" style="margin-top: 20px;">
    <div class="col-md-12">
        <div class="widget">
            <header class="widget-header">
                <h4 class="widget-title">资料修改</h4>
            </header><!-- .widget-header -->
            <hr class="widget-separator">
            <div class="widget-body">
                <form method="post" class="form-horizontal">
                    <div class="form-group">
                        <label class="col-sm-3 control-label">UID:</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" value="{$userInfo.uid}" disabled>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">用户名:</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" value="{$userInfo.user}" disabled>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">金币:</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" value="{$userInfo.point}金币" disabled>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">配额:</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" value="{$userInfo.peie}元" disabled>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">绑定QQ:</label>
                        <div class="col-sm-9">
                            <input type="text" name="qq" class="form-control" value="{$userInfo.qq}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">修改密码:</label>
                        <div class="col-sm-9">
                            <input type="text" name="pwd" class="form-control" placeholder="不修改则留空">
                        </div>
                    </div>
                    {if condition="$userInfo.power eq 9"}
                    <div class="form-group">
                        <label class="col-sm-3 control-label">提现支付宝账号:</label>
                        <div class="col-sm-9">
                            <input type="text" name="pay_account" class="form-control" value="{$userInfo.pay_account}">
                            <pre>如果填错将无法结算到账！</pre>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">提现支付宝姓名:</label>
                        <div class="col-sm-9">
                            <input type="text" name="pay_name" class="form-control" value="{$userInfo.pay_name}">
                        </div>
                    </div>
                    {/if}

                    <div class="form-group">
                        <div class="col-sm-offset-3 col-sm-9">
                            <button class="btn btn-success" type="submit">&lt;&lt;&lt;修改&gt;&gt;&gt;</button>
                        </div>
                    </div>
                </form>
            </div><!-- .widget-body -->
        </div>
    </div>
</div>
{/block}
